package Comprehensive_01;

public class Test2 {
    public static int getSum(int... number){
        int sum = 0;
        for (int i = 0; i < number.length; i++) {
            sum += number[i];
        }
        return sum;
    }

    public static void main(String[] args) {
        System.out.println(getSum(new int[]{1,2,5}));
    }
}
